//
//  PlSInstaller.h
//  Installer
//
//  Created by ∞ on 20/12/07.
//  Copyright 2007 Emanuele Vulcano (infinite-labs.net). All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface PlSInstaller : NSObject {
	IBOutlet NSWindow* _mainWindow;
	IBOutlet NSButton* _installButton;
	BOOL _installing;
	
	BOOL _isInstallingBundledPlugIn;
}

@property(readonly) BOOL isAlreadyInstalled;
@property(readonly) NSString* pathToAlreadyInstalled;
@property(readonly) NSString* libraryDirectory;
@property(readonly) NSString* pathToPreferencePanes;
@property(readonly) NSURL* URLToPreferencePanes;
@property(readonly) NSBundle* bundleToBeInstalled;
@property(readonly) NSString* versionToBeInstalled;
@property(readonly) BOOL systemPreferencesIsRunning;

- (IBAction) cancelAndQuit:(id) sender;
- (IBAction) revealFolder:(id) sender;
- (IBAction) install:(id) sender;
- (IBAction) uninstall:(id) sender;

- (void) trashOldBundle;
- (void) copyNewBundle;
- (void) uninstallAndContinueIfInstalling;
- (void) notifyUninstalled;

@end
